package com.bit.demo2;/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dell
 * Date: 2023-11-17
 * Time: 22:44
 */
import com.bit.demo1.test1;
public class test2 {
    public static void main(String[] args) {
        test1 p = new test1("HW", "i7", "8G", "13*14");
        System.out.println(p.screen);
// System.out.println(p.cpu); // 报错：cup是私有的，不允许被其他类访问
// System.out.println(p.brand); // 报错：brand是default，不允许被其他包中的类访问
    }
}